var URL = 'http://192.168.0.175:8081/trueLWZB/commonReportController/';
function getJSONData(url,callback){
	$.ajax({
	    type: "GET",
	    contentType: "application/x-www-form-urlencoded; charset=utf-8",
	    dataType: "jsonp",
	    url: url,
	    jsonp: 'callback',
	    success: function (json) {
	        callback(json)
	    },
	    timeout: 90*1000,
	    error: function (XMLHttpRequest, textStatus, errorThrown) {
	        console.error(url,textStatus+": "+errorThrown);
	    }
	});
}

function postJSONData(url,data,callback){
	console.log(data)
	$.ajax({
		type:"POST",
		contentType: "application/x-www-form-urlencoded; charset=utf-8",
		url:url,
		data:data,
		success:function(json){
			callback(json)
		},
		dataType:'json'
	})
}

function GetRequest() { 
    var url = location.search; //获取url中"?"符后的字串 
    var theRequest = new Object(); 
    if (url.indexOf("?") != -1) { 
      var str = url.substr(1); 
      strs = str.split("&"); 
      for(var i = 0; i < strs.length; i ++) { 
        theRequest[strs[i].split("=")[0]]=decodeURI(strs[i].split("=")[1]); 
      } 
    } 
    return theRequest; 
}  